// ExcelTableTextManage.cpp: implementation of the ExcelTableTextManage class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "ExcelTableTextManage.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////


ColTextManage::~ColTextManage()
{
	
}


ExcelTableTextManage::ExcelTableTextManage()
{
}

ExcelTableTextManage::~ExcelTableTextManage()
{

}

void ExcelTableTextManage::SetColText( int iIndex, CString& strColText )
{
	if ( iIndex >= m_ColManageArray.GetSize() )
	{
		m_ColManageArray.SetSize( iIndex + 1 );
	}
	m_ColManageArray.SetAt(iIndex,strColText);

}

void ExcelTableTextManage::SetItemText( int iItem,int Col,const CString& strItemText)
{
	if ( iItem >= m_ItemManageArray.GetSize() )
	{
		m_ItemManageArray.SetSize( iItem + 1 );
	}
	m_ItemManageArray.ElementAt( iItem ).SetText(Col,strItemText);
}

int ExcelTableTextManage::GetColumns()
{
	int iCount = m_ColManageArray.GetSize();
	return iCount;	
}

CString ExcelTableTextManage::GetColText( int iIndex )
{
	m_strColText = m_ColManageArray.GetAt(iIndex);
	return m_strColText;
}

int ExcelTableTextManage::GetItems( )
{
	int iCount;
	iCount = m_ItemManageArray.GetSize();
	return iCount;
}

CString ExcelTableTextManage::GetItemText( int iItem,int Col)
{
	CString strText;
	strText = m_ItemManageArray.ElementAt( iItem ).GetText( Col );
	return strText;
}